package com.hjc.mapper;

import com.hjc.entity.Role;
import com.hjc.entity.User;
import com.hjc.page.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    public User findUserByCode(String userCode);

    public Integer findUserRowCount(User user);

    public List<User> findUserByPage (@Param("page") Page page, @Param("user") User user);

    public int insertUser(User user);

    public int updateUserState(Integer userId,String state);

    public List<Role> findRoleByUserId(Integer userId);

    public int setUserDelete(List<Integer> userIdList);

    public int updateUserNameByUserId(User user);

    public int setPwdByUserId(Integer userId,String password);
}
